package pzl.kt.study.base

//操作符重载函数
class Matrix(val a: Int, val b: Int, val c: Int, val d: Int) {

    operator fun plus(m: Matrix): Matrix {
        return Matrix(m.a + a, m.b + b, m.c + c, m.d + d)
    }

    override fun toString(): String {
        return "a = ${a} ,b = ${b} ,c = ${c} ,d = ${d}"
    }
}